<template>
    <div>
        {{message}}
        <button @click="foo">button</button>
    </div>
</template>

<script>
    // 使用export default是不用加大括号的
    import { demoMixin } from './mixins/demoMixin'

    export default {
        mixins: [demoMixin],
        data() {
            return {
                title: 'Hello World',
                message: 'hello mixin'
            }
        },
        created() {
            console.log('组件的App created');
        }
    }
</script>

<style scoped>

</style>